package com.cskaoyan.bean.pojo;

import java.util.List;

public class RolePermissions {
    private Integer idPrimary;

    private Integer pid;

    private String id;

    private String label;

    private String api;

    private Integer type;

    private List<RolePermissions> children;

    public RolePermissions() {
    }

    public RolePermissions(Integer idPrimary, Integer pid, String id, String label, String api, Integer type) {
        this.idPrimary = idPrimary;
        this.pid = pid;
        this.id = id;
        this.label = label;
        this.api = api;
        this.type = type;
    }

    public RolePermissions(Integer idPrimary, Integer pid, String id, String label, String api, Integer type, List<RolePermissions> children) {
        this.idPrimary = idPrimary;
        this.pid = pid;
        this.id = id;
        this.label = label;
        this.api = api;
        this.type = type;
        this.children = children;
    }

    public List<RolePermissions> getChildren() {
        return children;
    }

    public void setChildren(List<RolePermissions> children) {
        this.children = children;
    }

    public Integer getIdPrimary() {
        return idPrimary;
    }

    public void setIdPrimary(Integer idPrimary) {
        this.idPrimary = idPrimary;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label == null ? null : label.trim();
    }

    public String getApi() {
        return api;
    }

    public void setApi(String api) {
        this.api = api == null ? null : api.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}